package com.example.springsecurityauthenticationprovider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class SpringSecurityAuthenticationProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringSecurityAuthenticationProviderApplication.class, args);
    }

    @GetMapping(value = "/hello",produces = MediaType.APPLICATION_JSON_VALUE)
    public String hello(){
        return "Hello";
    }

}
